<?php require_once("../includes/initializeSession.php"); ?>
<?php require_once("../includes/secure.php"); ?>
<?php
	
require("manuimClass.php"); 
$manuim = new manuim();
	#----- call the appropriate function ------#
if( isset($_POST ['oper']) )
{
    if($_POST ['oper']=="viewManuims")
    $manuim->viewManuims();
    else if($_POST ['oper']=="edit")
    $manuim->editManuim();
    else if($_POST ['oper']=="add")
    $manuim->addManuim();
    else if($_POST ['oper']=="del")
    $manuim->deleteManuim();
    else if($_POST ['oper']=="get_Mehiron_Names")
    $manuim->get_Mehiron_Names();
    else if($_POST ['oper']=="viewManuimPerAgentPerPerson")
    $manuim->viewManuimPerAgentPerPerson();
    else if($_POST ['oper']=="viewManuimPerAgent")
    {
    $manuim->viewManuimPerAgent();
    }
    else if($_POST ['oper']=="getFirstCreateDate")
    $manuim->getFirstCreateDate();
    else if($_POST ['oper']=="getIncomesAndAmlotPerAgent")
    {
    $manuim->getIncomesAndAmlotPerAgent();
    }
    else if($_POST ['oper']=="viewManuimPerAgentPerAmlaDate")
    $manuim->viewManuimPerAgentPerAmlaDate();
    else if($_POST ['oper']=="viewManuimPerAgentPerAmlaDateOfMtriaAgent")
    $manuim->viewManuimPerAgentPerAmlaDateOfMtriaAgent();
    else if($_POST ['oper']=="get_Mehiron_Names_With_Prices")
    $manuim->get_Mehiron_Names_With_Prices();
    else if($_POST ['oper']=="getIncomesAndAmlotPerMetriaAgent")
    $manuim->getIncomesAndAmlotPerMetriaAgent();
    else if($_POST ['oper']=="viewManuimof15DaysPast")
    $manuim->viewManuimof15DaysPast();
    else if($_POST ['oper']=="viewManuimof60DaysPast")
    $manuim->viewManuimof60DaysPast();
    else if($_POST ['oper']=="approve")
    $manuim->approveManuy();   
    else if($_POST ['oper']=="viewManuimPerAgentPerPersonSum")
    $manuim->viewManuimPerAgentPerPersonSum(); 
    else if($_POST ['oper']=="viewManuimsSum")
    $manuim->viewManuimsSum(); 
               
        
}

	#----- call the appropriate  function ------#


?>